CC      = g++
CFLAGS  = --std=c++0x -Wall
LDFLAGS =


OBJECTS = reader.o tinyxml.o tinystr.o tinyxmlparser.o tinyxmlerror.o recipefactory.o recipe.o

reader : $(OBJECTS)
		$(CC) $(OBJECTS) -o reader 
		
reader.o: reader.cpp
		$(CC) $(CFLAGS) -c reader.cpp -Itinyxml
		
recipefactory.o: recipefactory.cpp 
		$(CC) $(CFLAGS) -c recipefactory.cpp -Itinyxml
		
recipe.o: recipe.cpp
		$(CC) $(CFLAGS) -c recipe.cpp

#TinyXml files
tinyxml.o: tinyxml/tinyxml.cpp
		$(CC) $(CFLAGS) -c tinyxml/tinyxml.cpp

tinystr.o: tinyxml/tinystr.cpp
		$(CC) $(CFLAGS) -c tinyxml/tinystr.cpp

tinyxmlerror.o: tinyxml/tinyxmlerror.cpp
		$(CC) $(CFLAGS) -c tinyxml/tinyxmlerror.cpp
		
tinyxmlparser.o: tinyxml/tinyxmlparser.cpp
		$(CC) $(CFLAGS) -c tinyxml/tinyxmlparser.cpp


		
clean:
	rm -f *.o
	rm -f reader.exe
	rm -f reader